Tegra210: lock PMC registers holding CPU vector addresses
authorVarun Wadekar <[email protected]>
Thu, 16 Jul 2015 06:28:19 +0000 (11:58 +0530)
committerVarun Wadekar <[email protected]>
Fri, 17 Jul 2015 13:36:54 +0000 (19:06 +0530)
This patch locks access to the PMC registers which hold the CPU reset
vector addresses. The PMC registers are used by the warmboot code and
must be locked during boot/resume to avoid booting into custom firmware
installed by unknown parties e.g. hackers.

Signed-off-by: Varun Wadekar <[email protected]>
plat/nvidia/tegra/soc/t210/plat_secondary.c

index fb3cf714366f531c8468630a57d024eca0c70a5a..b07f446d0c5d27bda3029c96203c578b5b1680e1 100644 (file)
@@ -60,4 +60,5 @@ void plat_secondary_setup(void)
 
        /* configure PMC */
        tegra_pmc_cpu_setup(reset_addr);
+       tegra_pmc_lock_cpu_vectors();
 }